package com.wangjw.designPattern.singleton;

/**
 * Created by wangjw on 18/8/16.
 */
public class MyThread extends Thread {

    @Override
    public void run() {
        System.out.println(LazySingleton.getInstance().hashCode());
    }

    public static void main(String[] args) {
        MyThread[] mts = new MyThread[10];
        for (int i = 0; i < mts.length; i++) {
            mts[i] = new MyThread();
        }

        for (int j = 0; j < mts.length; j++) {
            mts[j].start();
        }
    }
}
